<template>
  <div class="box">
    <div class="headerTop">
      <header class="header">
        <ul class="list">
          <li>
            <img
              src="http://www.bluemoon.com.cn/_nuxt/img/img_bluemoon_white.7a5620d.png"
              alt=""
            />
          </li>
          <li
            v-for="(val, index) in list"
            :key="index"
            @click="n = index"
            :class="n === index ? 'sel' : ''"
          >
            {{ val }}
          </li>
        </ul>
      </header>
    </div>
    <Clahome v-show="n === 0"></Clahome>
    <Science v-show="n === 1"></Science>
    <footer class="footer">
      <div class="fotCon">
        <div class="qr">
          <div class="logo">
            <img
              src="http://www.bluemoon.com.cn/_nuxt/img/img_bluemoon_white.7a5620d.png"
              alt=""
            />
            <div class="ewm">
              <div>
                <img
                  src="https://www.bluemoon.com.cn/official/newPhoto/head/%E6%B4%81%E5%87%80%E6%97%A0%E5%BF%A7%E5%85%AC%E4%BC%97%E5%8F%B7%200914%EF%BC%88%E6%9C%80%E6%96%B0%EF%BC%89.png"
                  alt=""
                />
                <p>洁净无忧公众号</p>
              </div>
              <div>
                <img
                  src="https://www.bluemoon.com.cn/official/newPhoto/head/%E3%80%90%E5%BA%95%E9%83%A8%E5%AF%BC%E8%88%AA%E3%80%91%E8%87%B3%E5%B0%8A%E6%B4%97%E8%A1%A3APP.png"
                  alt=""
                />
                <p>至尊洗衣App</p>
              </div>
              <div>
                <img
                  src="https://www.bluemoon.com.cn/official/newPhoto/head/%E3%80%90%E5%BA%95%E9%83%A8%E5%AF%BC%E8%88%AA%E3%80%91%E8%93%9D%E6%9C%88%E4%BA%AE%E5%AE%98%E6%96%B9%E5%BE%AE%E5%8D%9A.png"
                  alt=""
                />
                <p>蓝月亮官方微博</p>
              </div>
            </div>
          </div>
        </div>
        <div class="kjrk">
          <h3>快捷入口</h3>
          <div class="kjrkCon">
            <div>
              <h2><a href="#">首页</a></h2>
            </div>
            <div>
              <h2><a href="#">走进蓝月亮</a></h2>
              <li><a href="#">关于我们</a></li>
              <li><a href="#">企业文化</a></li>
              <li><a href="#">企业责任</a></li>
              <li><a href="#">新闻动态</a></li>
            </div>
            <div>
              <h2><a href="#">洁净之家</a></h2>
            </div>
            <div>
              <h2><a href="#">科学洗涤</a></h2>
            </div>
            <div>
              <h2><a href="#">加入我们</a></h2>
            </div>
            <div>
              <h2><a href="#">投资者关系</a></h2>
              <li><a href="#">企业治理</a></li>
              <li><a href="#">信息公告</a></li>
              <li><a href="#">投资者联络</a></li>
              <li><a href="#">分析师名单</a></li>
            </div>
            <div>
              <h2><a href="#">联系我们</a></h2>
              <li><a href="#">总部信息</a></li>
              <li><a href="#">供应商注册</a></li>
            </div>
          </div>
        </div>
        <div class="lxwm">
          <h2>联系我们</h2>
          <div>
            <p>24小时服务热线：</p>
            <p><span>400-111-1118</span></p>
          </div>
          <div>
            <p>服务邮箱：</p>
            <p><span>400@bluemoon.com.cn</span></p>
          </div>
          <ul>
            <li>
              <img
                src="http://www.bluemoon.com.cn/_nuxt/img/icon_JD_unselect.33011ba.png"
                alt=""
              />
              <p>京东</p>
            </li>
            <li>
              <img
                src="http://www.bluemoon.com.cn/_nuxt/img/icon_tm_unselect.c7957f2.png"
                alt=""
              />
              <p>天猫</p>
            </li>
            <li>
              <img
                src="http://www.bluemoon.com.cn/_nuxt/img/icon_sn_unselect.1702a63.png"
                alt=""
              />
              <p>苏宁易购</p>
            </li>
          </ul>
        </div>
      </div>
      <p class="footP">
        Copyright 2008© 蓝月亮国际集团有限公司 All Rights Reserved
        <a href="#">粤ICP备06004747号-1</a>
      </p>
    </footer>
  </div>
</template>
<style lang="scss">
* {
  padding: 0;
  margin: 0;
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
}
.headerTop {
  width: 100%;
  height: 80px;
  background: #fff;
  position: fixed;
  top: 0;
  z-index: 100;
}
.header {
  width: 922px;
  height: 80px;
  margin: 0 auto;
  .list {
    display: flex;
    img {
      width: 96px;
      vertical-align: middle;
      margin-right: 30px;
    }
  }
  li {
    cursor: pointer;
    height: 80px;
    padding: 0 10px;
    margin: 0 5px;
    line-height: 80px;
    &:hover {
      color: #1d3e97;
    }
  }
  .sel {
    color: #1d3e97;
  }
}
.footer {
  width: 100%;
  padding: 80px 0 54px 0;
  height: 460px;
  background: #f4f4f4;
  .footP {
    text-align: center;
    font-size: 12px;
    padding-top: 50px;
    color: #666;
    a {
      color: #666;
    }
  }
}
.fotCon {
  width: 1306px;
  border-bottom: 1px solid #ddd;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  a {
    color: #333;
  }
}
.qr {
  width: 270px;
}
.logo img {
  width: 144px;
}
.ewm {
  display: flex;
  flex-wrap: wrap;
  text-align: center;
  div {
    margin: 18px 26px 0 0;
    width: 103px;
    height: 92px;
    font-size: 12px;
    img {
      width: 62px;
      margin-bottom: 10px;
    }
  }
}
.kjrk {
  width: 618px;
  padding: 0 22px 0;
  margin-top: 40px;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  height: 256px;
  box-sizing: border-box;
  h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 20px;
  }
  .kjrkCon {
    margin-left: 20px;
    display: flex;
    justify-content: space-between;
    h2 {
      font-size: 16px;
    }
    li {
      list-style: none;
      font-size: 14px;
      margin-top: 12px;
    }
  }
}
.lxwm {
  margin-top: 40px;
  h2 {
    color: #333;
    font-size: 18px;
    margin-bottom: 20px;
  }
  div {
    height: 80px;
    p {
      margin-bottom: 6px;
    }
    span {
      color: #203c87;
    }
  }
  ul {
    display: flex;
    margin-bottom: 50px;
    img {
      width: 26px;
    }
    li {
      width: 70px;
      text-align: center;
      font-size: 14px;
      color: #666;
    }
  }
}
</style>
<script>
export default {
  components: {
    Clahome: require('./Clean_home.vue').default,
    Science: require('./Science_clean.vue').default,
  },
  data() {
    return {
      list: ['洁净之家', '科学洗涤'],
      n: 0,
    }
  },
}
</script>
